package com.evl.scheduleStation.controller;

import com.evl.common.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 车次线路管理控制器
 *
 * @author 
 * @Date 2017-07-10 10:44:49
 */
@Controller
@RequestMapping("/scheduleStation")
public class ScheduleStationController extends BaseController {

    private String PREFIX = "/scheduleStation/";

    /**
     * 跳转到车次线路管理首页
     */
    @RequestMapping("")
    public String index() {
        return PREFIX + "scheduleStation.html";
    }

    /**
     * 跳转到添加车次线路管理
     */
    @RequestMapping("/scheduleStation_add")
    public String scheduleStationAdd() {
        return PREFIX + "scheduleStation_add.html";
    }

    /**
     * 跳转到修改车次线路管理
     */
    @RequestMapping("/scheduleStation_update/{scheduleStationId}")
    public String scheduleStationUpdate(@PathVariable Integer scheduleStationId, Model model) {
        return PREFIX + "scheduleStation_edit.html";
    }

    /**
     * 获取车次线路管理列表
     */
    @RequestMapping(value = "/list")
    @ResponseBody
    public Object list(String condition) {
        return null;
    }

    /**
     * 新增车次线路管理
     */
    @RequestMapping(value = "/add")
    @ResponseBody
    public Object add() {
        return super.SUCCESS_TIP;
    }

    /**
     * 删除车次线路管理
     */
    @RequestMapping(value = "/delete")
    @ResponseBody
    public Object delete() {
        return SUCCESS_TIP;
    }


    /**
     * 修改车次线路管理
     */
    @RequestMapping(value = "/update")
    @ResponseBody
    public Object update() {
        return super.SUCCESS_TIP;
    }

    /**
     * 车次线路管理详情
     */
    @RequestMapping(value = "/detail")
    @ResponseBody
    public Object detail() {
        return null;
    }
}
